package com.apes.fn.scm.retailOrder.service.account;

import com.apes.fn.scm.retailOrder.model.RetailOrder;
import com.apes.fn.scm.retailOrder.model.RetailOrderItem;
import com.apes.fn.scm.retailReturn.RetailReturn;
import com.apes.fn.server.servicePlan.model.ServicePlan;
import com.apes.fn.server.servicePlan.model.ServicePlanItem;
import com.apes.fn.server.workOrder.model.MaintenanceOrder;
import com.apes.scm.masterdata.frame.model.Dept;
import com.apes.scm.sal.saleOrder.SaleOrder;
import com.apes.scm.sal.saleOrder.SaleOrderItem;
import lombok.Data;

import java.util.List;

/**
 * 用于构建出零售账目的转换类
 * @Author wuq
 * @Date 2021-11-8
 */
@Data
public class RetailAccountData {

    private Dept dept;

    private List<MaintenanceOrder> maintenanceOrders;

    private ServicePlan servicePlan;
    private List<ServicePlanItem> servicePlanItems;

    private RetailOrder retailOrder;
    private List<RetailOrderItem> retailOrderItems;

    private SaleOrder saleOrder;
    private List<SaleOrderItem> saleOrderItems;

    public RetailAccountData(){
    }

    public RetailAccountData(List<MaintenanceOrder> maintenanceOrders){
        this.maintenanceOrders = maintenanceOrders;
    }

    public RetailAccountData(SaleOrder saleOrder){
        this.saleOrder = saleOrder;
    }

    public RetailAccountData(RetailOrder retailOrder){
        this.retailOrder = retailOrder;
    }

    public RetailAccountData(SaleOrder saleOrder, List<SaleOrderItem> items){
        this.saleOrder = saleOrder;
        this.saleOrderItems = items;
    }

    public RetailAccountData(RetailOrder retailOrder, List<RetailOrderItem> items){
        this.retailOrder = retailOrder;
        this.retailOrderItems = items;
    }

    public RetailAccountData(ServicePlan servicePlan, List<ServicePlanItem> servicePlanItemList, Dept serviceDept) {
        this.servicePlan = servicePlan;
        this.servicePlanItems = servicePlanItemList;
        this.dept = serviceDept;
    }
}
